package com.ctshk.rpc.ship.service;


import com.ctshk.common.dto.Result;
import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.ship.req.ShipProductPageReq;
import com.ctshk.rpc.ship.req.ShipProductSaleRecordReq;

/**
 * <p>
 * 船票销售加幅策略 服务类
 * </p>
 *
 * @author 刘蕾
 * @since 2021-03-10
 */
public interface IShipProductSaleRecordService {

    /**
     * 下单后更新到record表
     * @param shipProductSaleRecordReq
     * @return
     */
    Result insertRecord(ShipProductSaleRecordReq shipProductSaleRecordReq, TokenUser user);


    /**
     *  还回库存
     * @param orderId
     * @param productId
     * @return
     */
    Result deleteRecord(Long orderId,Long productId);

}
